/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * Released under MIT see LICENSE.txt in the project root for license information.
 * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
 */

@import (reference) '../../../styles/variables';
@import (reference) '../../../styles/mixins';

:root {
	--first_column: 31%;
	--cols: 4;
	--info-background: rgb(233, 233, 233);
	--icon-size: @icon-small-size;
	--col_size: 150px;
}

.jodit-filebrowser {
	display: flex;
	height: 100%;
	font-family: var(--font-default);

	&_no-files_true {
		padding: var(--padding-default);
	}

	@media (max-width: @screen-xs) {
		flex-flow: column-reverse;
	}

	&__loader {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;

		div {
			position: absolute;
			top: 50%;
			left: 50%;
			margin-top: calc(var(--icon-loader-size) / -2);
			margin-left: calc(var(--icon-loader-size) / -2);
			font-style: normal;
			opacity: 0.7;
		}
	}

	&__status {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		padding: 6px;
		border-top: 1px solid rgba(127, 127, 127, 0.4);
		background-color: #4a4a4a;
		color: #b38888;
		font-size: 12px;
		opacity: 0;
		text-align: right;
		transition: opacity 0.3s linear;
		visibility: hidden;
		word-break: break-all;

		&_success_true {
			color: #c5c5c5;
		}

		&_active_true {
			opacity: 1;
			visibility: visible;
		}
	}
}

.jodit_draghover {
	background-color: var(--color-background-button-hover);
}

.jodit-dialog .jodit-dialog__header-title {
	&.jodit-filebrowser__title-box {
		display: flex;
		align-items: center;
		padding-left: var(--padding-default);
	}
}
